<div class="row-fluid">
    <div class="table-header">
        Danh sách sản phẩm
        <div class="pull-right">
            <a class="btn btn-small btn-success" href='<?php echo site_url("/product/create/$warehouseId")?>'>Thêm <i class="icon-arrow-right icon-on-right bigger-110"></i></a>
        </div>
    </div>
    <table id="table_report" class="table table-striped table-bordered table-hover dataTable">
               <thead>
                  <tr>
                     <th>
                        <i class="icon-caret-right blue"></i>
                        Tên
                     </th>
                     <th>
                        <i class="icon-caret-right blue"></i>
                        Nhà cung cấp
                     </th>                     
                     <th>
                        <i class="icon-caret-right blue"></i>
                        Nhập
                     </th>
                     <th>
                        <i class="icon-caret-right blue"></i>
                        Xuất
                     </th>
                     <th>
                        <i class="icon-caret-right blue"></i>
                        Tồn kho
                     </th>                                          
                     <th class="hidden-phone">
                        <i class="icon-caret-right blue"></i>
                        Trạng thái
                     </th>
                  </tr>
               </thead>
               <tbody>
                  <?php foreach ($lstProduct as $product) { ?>
                     <tr>
                        <td><?php echo $product->Name ?></td>
                        <td><?php echo $product->ProviderName ?></td>
                        <td>
                           <b class="green"><?php echo $product->total_recept ?></b>
                        </td>
                        <td class="hidden-phone">
                           <span class="label label-info arrowed-right arrowed-in">mới nhập</span>
                        </td>
                        <td></td>
                        <td></td>
                     </tr>
                  <?php } ?>
               </tbody>


    </table>
</div>

    <script src='<?php echo base_url("/content/js/jquery.dataTables.min.js") ?>'></script>
    <script src='<?php echo base_url("/content/js/jquery.dataTables.bootstrap.js") ?>'></script>

    <script>
        $(document).ready(function () {

            var oTable = $('#table_report').dataTable({
                "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>"
            });

            oTable.fnSort([[0, 'desc']]);

        });
    </script>